<script type="text/javascript">
Ext.namespace('Ecart', 'Ecart.Template', 'Ecart.Template.Box');
Ecart.pages = <?php echo Zend_Json::encode($this->pages) ?>;
Ecart.Template.Box.classes = <?php echo Zend_Json::encode($this->boxClasses) ?>;
</script>
<?php
$this->headScript()
    ->appendFile('js/extjs-ux/multiselect/ComboSelect.js')
    ->appendFile('js/extjs-ecart/src/widgets/form/ComboSelect.js')
    ->appendFile('js/extjs-ux/grid/GridSearch.js')
    ->appendFile('js/ecart/admin/template/box.js') 
    ->appendFile('js/ecart/admin/template/layout.js') 
    ->appendFile('js/ecart/admin/template/template.js')
    
    //->appendFile('js/ecart/admin/template/box/grid.js')
    //->appendFile('js/ecart/admin/template/box/window.js')
    ; 

$this->setButtons(array(
    array(
        'title' => Ecart::translate('Ecart_Admin')->__('Back'),
        'onclick' => 'history.back()',
        'class' => 'alt-button'
    ),
    array(
        'title' => Ecart::translate('Ecart_Admin')->__('Create template'),
        'class' => 'button',
        'onclick' => "Ecart.Template.Template.create()"
    ),
    array(
        'title' => Ecart::translate('Ecart_Admin')->__('Import template'),
        'class' => 'button',
        'onclick' => "Ecart.Template.Template.startImport()"
    )
));
?>